package springcloud.easybuy.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import springcloud.easybuy.entity.EasybuyProduct;
import springcloud.easybuy.entity.EasybuyProductCategory;

import java.util.List;

@FeignClient(value = "easybuy-product-manager")
public interface ProductCategoryManagerClient {
    @RequestMapping("/queryByParentId/{id}")
    public List<EasybuyProductCategory> queryAllProductCategory(@PathVariable("id") int id);
    @RequestMapping("/queryAllProductCategory")
    public List<EasybuyProductCategory> queryAllProduct();



}
